<div class="btn-group">
  <button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= id %>" aria-haspopup="true">
    <span class="sr-only"><%= t("sufia.dashboard.my.sr.press_to") %> </span>
    <%= t("sufia.dashboard.my.action.select") %> <span class="caret" aria-hidden="true"></span>
  </button>
  <ul role="menu" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu_<%= id %>">
    <li role="menuitem" tabindex="-1">
      <%= link_to edit_collection_path(id),
                  class: 'itemicon itemedit',
                  title: t("sufia.dashboard.my.action.edit_collection") do %>
        <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i> <%= t("sufia.dashboard.my.action.edit_collection") %>
      <% end %>
    </li>
    <li role="menuitem" tabindex="-1">
      <%= link_to collection_path(id),
                  class: 'itemicon itemtrash',
                  title: t("sufia.dashboard.my.action.delete_collection"),
                  method: :delete,
                  data: {
                    confirm: t("sufia.dashboard.my.action.collection_confirmation", application_name: application_name) } do %>
        <i class="glyphicon glyphicon-trash" aria-hidden="true"></i> <%= t("sufia.dashboard.my.action.delete_collection") %>
      <% end %>
    </li>
  </ul>
</div>
